package com.ruoyi.project.men.service.impl;

import com.ruoyi.common.utils.bootdo.R;
import com.ruoyi.project.men.dao.MenProtocolInfoDao;
import com.ruoyi.project.men.domain.MenProtocolInfoDO;
import com.ruoyi.project.men.service.MenProtocolInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class MenProtocolInfoServiceImpl implements MenProtocolInfoService {
	@Autowired
	private MenProtocolInfoDao menProtocolInfoDao;
	
	@Override
	public MenProtocolInfoDO get(String id){
		return menProtocolInfoDao.get(id);
	}
	
	@Override
	public List<MenProtocolInfoDO> list(Map<String, Object> map){
		return menProtocolInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return menProtocolInfoDao.count(map);
	}
	
	@Override
	public int save(MenProtocolInfoDO menProtocolInfo){
		return menProtocolInfoDao.save(menProtocolInfo);
	}
	
	@Override
	public int update(MenProtocolInfoDO menProtocolInfo){
		return menProtocolInfoDao.update(menProtocolInfo);
	}
	
	@Override
	public int remove(String id){
		return menProtocolInfoDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return menProtocolInfoDao.batchRemove(ids);
	}

    @Override
    public List<MenProtocolInfoDO> likeList(Map<String, Object> map){
        return menProtocolInfoDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return menProtocolInfoDao.likeListCount(map);
    }

    @Override
    public R getTrotocolInfoByClassId(Map<String, Object> params) {


		List<Map<String,Object>> list = menProtocolInfoDao.getTrotocolInfoByClassId(params);

        return R.ok().put("data",list);
    }

}
